To set the edit mode of a non-data-bound control in SetEditMode, make a call to EnableControl for each control on the form. The EnableControl method can be used for most of the common control types used on Visual Basic forms. It accepts the control name as the first argument.
The second argument, a Boolean, is already provided in the default extension of SetEditMode as the bReadOnly variable. It can be omitted if the control is data-bound.
m_designer.EnableControl “txtMyControl”, Not bReadOnly
The interface extension designer will internally use the CanEditProperty method to check whether the named property can actually be edited. Besides the edit mode, the effectivity type of the property and state of the document can also cause a property to be read-only.
Related information
Setting the edit mode using control properties